package com.leisai.manager.dto;

import javax.persistence.Column;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: jim
 * @Date: 2021/11/30/11:56
 * @Description:
 */
public class IndustryDTO {
    @Column(name = "INDUSTRY_ID")
    private Integer industryId;

    @Column(name = "INDUSTRY_NAME")
    private String industryName;

    @Column(name = "CREATE_TIME")
    private Date createTime;

    @Column(name = "USER_ID")
    private Integer userId;

    /**
     * 父级id
     */
    @Column(name = "PID")
    private Long pid;

    /**
     * 所有父级id
     */
    @Column(name = "PIDS")
    private String pids;

    @Column(name = "UPDATE_TIME")
    private Date updateTime;

    /**
     * 状态（1:正常,2:冻结,3:删除）
     */
    @Column(name = "STATUS")
    private Integer status;

    private String userName ;


    public Integer getIndustryId() {
        return industryId;
    }

    public void setIndustryId(Integer industryId) {
        this.industryId = industryId;
    }


    public String getIndustryName() {
        return industryName;
    }

    public void setIndustryName(String industryName) {
        this.industryName = industryName;
    }


    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }


    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }


    public String getPids() {
        return pids;
    }

    public void setPids(String pids) {
        this.pids = pids;
    }


    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "IndustryDTO{" +
                "industryId=" + industryId +
                ", industryName='" + industryName + '\'' +
                ", createTime=" + createTime +
                ", userId=" + userId +
                ", pid=" + pid +
                ", pids='" + pids + '\'' +
                ", updateTime=" + updateTime +
                ", status=" + status +
                ", userName='" + userName + '\'' +
                '}';
    }
}
